<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
?>
<div class="form-box" id="login-box">
            <div class="header">ChIS - Sign In</div>

            <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
                    'id'=>'login-form',
                'type'=>'vertical',
                    'enableClientValidation'=>true,
                    'clientOptions'=>array(
                            'validateOnSubmit'=>true,
                    ),
            )); ?>
                <div class="body bg-gray">
                     <?php echo $form->textFieldRow($model,'username',array('class'=>'input-block-level', 'placeholder'=>'Username')); ?>

                    <?php echo $form->passwordFieldRow($model,'password',array('class'=>'input-block-level', 'placeholder'=>'Password')); ?>

                    <?php //echo $form->checkBoxRow($model,'rememberMe'); ?>
                </div>
                <div class="footer"> 
                            <?php $this->widget('bootstrap.widgets.TbButton', array(
                                'buttonType'=>'submit',
                                'type'=>'primary',
                                'label'=>'Login',
                                'htmlOptions'=>array('class'=>'btn bg-olive btn-block')
                            )); ?>   
<!--                    <p><a href="#">I forgot my password</a></p>-->
                </div>
            <?php $this->endWidget(); ?>
        </div>